//
// Created by wze-zero on 2024/7/17 017.
//
#include<iostream>

using namespace std;

class Array {
private:
    int n;//数组大小
    int *a;//数组
public:
    Array() {
        cin >> n;
        a = new int[n];
        for (int i = 0; i < n; ++i) {
            cin >> a[i];
        }
    }

    ~Array() {
        delete[]a;
    }

    void show() {
        for (int i = 0; i < n; i++) {
            cout << a[i] << ' ';
        }
    }
};

int main() {
    Array a;
    a.show();
    return 0;
}